<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <div v-if="ok">我是 v-if 指令控制的 DIV</div>
        <div v-else>我是 v-else 指令控制的 DIV</div>
        <div v-show="show">我是 v-show 指令控制的 DIV</div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
    <script>
        const app = new Vue({
            el: "#app",
            data: {
                ok: true,
                show: true
            }
        });
    </script>
</body>

</html>